<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class MY_Model extends CI_Model
{
    public function __construct()
    {
        parent::__construct();
    }

    public function make_dirs()
    {
    	$id_member = $this->session->userdata['idmember'];
				
		$array_folder = array($id_member, $id_member . '/img', $id_member . '/vid', $id_member . '/tmb');
		foreach ($array_folder as $folder_name) {
			if (!is_dir(FCPATH.'f/'.$folder_name)) {
				mkdir(FCPATH.'f/'.$folder_name);
			}
		}
    }
}

?>